<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" 
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
        xmlns:x="http://www.w3.org/1999/xhtml"
        exclude-result-prefixes="x">
    <xsl:template match="/">
        <records>
            <xsl:for-each select="//x:table[@id='WatchlistPrices1_DataListPrices']//x:table/x:tr/x:td[@valign='top']/..">
                <record>
                    <xsl:attribute name="name"><xsl:value-of select="x:td[2]" /></xsl:attribute>
                    <xsl:attribute name="address"><xsl:value-of select="x:td[3]" /></xsl:attribute>
                    <xsl:attribute name="postCode"><xsl:value-of select="x:td[4]" /></xsl:attribute>
                    <xsl:attribute name="suburb"><xsl:value-of select="x:td[5]" /></xsl:attribute>
                    <xsl:attribute name="collectedDate"><xsl:value-of select="x:td[6]" /></xsl:attribute>
                    <xsl:attribute name="price"><xsl:value-of select="x:td[7]" /></xsl:attribute>
                </record>
            </xsl:for-each>
        </records>
    </xsl:template>
</xsl:stylesheet>